﻿using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace AllInOne.PrintUtils
{
    // Token: 0x02000061 RID: 97
    public class ExtendedBrowserMessageEventArgs : CancelEventArgs
    {
        // Token: 0x17000097 RID: 151
        // (get) Token: 0x06000368 RID: 872 RVA: 0x00044F1C File Offset: 0x0004311C
        public int pResult
        {
            get
            {
                return this._plResult;
            }
        }

        // Token: 0x17000098 RID: 152
        // (set) Token: 0x06000369 RID: 873 RVA: 0x00044F34 File Offset: 0x00043134
        public DialogResult DlgResult
        {
            set
            {
                this._plResult = (int)value;
            }
        }

        // Token: 0x17000099 RID: 153
        // (get) Token: 0x0600036A RID: 874 RVA: 0x00044F40 File Offset: 0x00043140
        public IntPtr hwnd
        {
            get
            {
                return this._hwnd;
            }
        }

        // Token: 0x1700009A RID: 154
        // (get) Token: 0x0600036B RID: 875 RVA: 0x00044F58 File Offset: 0x00043158
        public string Text
        {
            get
            {
                return this._lpstrText;
            }
        }

        // Token: 0x1700009B RID: 155
        // (get) Token: 0x0600036C RID: 876 RVA: 0x00044F70 File Offset: 0x00043170
        public string Caption
        {
            get
            {
                return this._lpstrCaption;
            }
        }

        // Token: 0x1700009C RID: 156
        // (get) Token: 0x0600036D RID: 877 RVA: 0x00044F88 File Offset: 0x00043188
        public MessageBoxButtons DlgButtons
        {
            get
            {
                switch (this._dwType & 15u)
                {
                    case 1u:
                        return MessageBoxButtons.OKCancel;
                    case 2u:
                        return MessageBoxButtons.AbortRetryIgnore;
                    case 3u:
                        return MessageBoxButtons.YesNoCancel;
                    case 4u:
                        return MessageBoxButtons.YesNo;
                    case 5u:
                        return MessageBoxButtons.RetryCancel;
                }
                return MessageBoxButtons.OK;
            }
        }

        // Token: 0x1700009D RID: 157
        // (get) Token: 0x0600036E RID: 878 RVA: 0x00044FDC File Offset: 0x000431DC
        public MessageBoxIcon DlgIcon
        {
            get
            {
                uint num = this._dwType & 240u;
                if (num <= 32u)
                {
                    if (num != 0u)
                    {
                        if (num == 16u)
                        {
                            return MessageBoxIcon.Hand;
                        }
                        if (num == 32u)
                        {
                            return MessageBoxIcon.Question;
                        }
                    }
                }
                else
                {
                    if (num == 48u)
                    {
                        return MessageBoxIcon.Exclamation;
                    }
                    if (num == 64u)
                    {
                        return MessageBoxIcon.Asterisk;
                    }
                    if (num != 128u)
                    {
                    }
                }
                return MessageBoxIcon.None;
            }
        }

        // Token: 0x1700009E RID: 158
        // (get) Token: 0x0600036F RID: 879 RVA: 0x0004503C File Offset: 0x0004323C
        public MessageBoxDefaultButton DlgDefaultButtons
        {
            get
            {
                uint num = this._dwType & 3840u;
                if (num != 0u)
                {
                    if (num == 256u)
                    {
                        return MessageBoxDefaultButton.Button2;
                    }
                    if (num == 512u)
                    {
                        return MessageBoxDefaultButton.Button3;
                    }
                }
                return MessageBoxDefaultButton.Button1;
            }
        }

        // Token: 0x1700009F RID: 159
        // (get) Token: 0x06000370 RID: 880 RVA: 0x00045084 File Offset: 0x00043284
        public MessageBoxOptions DlgOptions
        {
            get
            {
                uint num = this._dwType & 4128768u;
                if (num <= 262144u)
                {
                    if (num == 131072u)
                    {
                        return MessageBoxOptions.DefaultDesktopOnly;
                    }
                    if (num != 262144u)
                    {
                        goto IL_62;
                    }
                }
                else
                {
                    if (num == 524288u)
                    {
                        return MessageBoxOptions.RightAlign;
                    }
                    if (num == 1048576u)
                    {
                        return MessageBoxOptions.RtlReading;
                    }
                    if (num != 2097152u)
                    {
                        goto IL_62;
                    }
                }
                return MessageBoxOptions.ServiceNotification;
            IL_62:
                return (MessageBoxOptions)0;
            }
        }

        // Token: 0x170000A0 RID: 160
        // (get) Token: 0x06000371 RID: 881 RVA: 0x000450F8 File Offset: 0x000432F8
        public bool displayHelpButton
        {
            get
            {
                return (this._dwType & 16384u) == 16384u;
            }
        }

        // Token: 0x170000A1 RID: 161
        // (get) Token: 0x06000372 RID: 882 RVA: 0x00045120 File Offset: 0x00043320
        public string lpstrHelpFile
        {
            get
            {
                return this._lpstrHelpFile;
            }
        }

        // Token: 0x170000A2 RID: 162
        // (get) Token: 0x06000373 RID: 883 RVA: 0x00045138 File Offset: 0x00043338
        public uint dwHelpContext
        {
            get
            {
                return this._dwHelpContext;
            }
        }

        // Token: 0x06000374 RID: 884 RVA: 0x00045150 File Offset: 0x00043350
        public ExtendedBrowserMessageEventArgs(IntPtr Hwnd, string LpstrText, string LpstrCaption, uint DwType, string LpstrHelpFile, uint DwHelpContext)
        {
            this._hwnd = Hwnd;
            this._lpstrText = LpstrText;
            this._lpstrCaption = LpstrCaption;
            this._dwType = DwType;
            this._lpstrHelpFile = LpstrHelpFile;
            this._dwHelpContext = DwHelpContext;
            switch (this.DlgButtons)
            {
                case MessageBoxButtons.OKCancel:
                case MessageBoxButtons.YesNoCancel:
                case MessageBoxButtons.RetryCancel:
                    this.DlgResult = DialogResult.Cancel;
                    return;
                case MessageBoxButtons.AbortRetryIgnore:
                    this.DlgResult = DialogResult.Abort;
                    return;
                case MessageBoxButtons.YesNo:
                    this.DlgResult = DialogResult.No;
                    return;
            }
            this.DlgResult = DialogResult.OK;
        }

        // Token: 0x04000343 RID: 835
        private int _plResult;

        // Token: 0x04000344 RID: 836
        private IntPtr _hwnd;

        // Token: 0x04000345 RID: 837
        private string _lpstrText;

        // Token: 0x04000346 RID: 838
        private string _lpstrCaption;

        // Token: 0x04000347 RID: 839
        private uint _dwType;

        // Token: 0x04000348 RID: 840
        private string _lpstrHelpFile;

        // Token: 0x04000349 RID: 841
        private uint _dwHelpContext;
    }
}
